Skip to content

fix(tui): add hover states to question tool tabs#12203

Merged
rekram1-node merged 1 commit intoanomalyco:devfrom
maharshi365:fix/question-tab-hover
Feb 5, 2026
Merged

fix(tui): add hover states to question tool tabs#12203
rekram1-node merged 1 commit intoanomalyco:devfrom
maharshi365:fix/question-tab-hover

Conversation

@maharshi365
Copy link
Contributor

@maharshi365 maharshi365 commented Feb 4, 2026

Adds mouse hover visual feedback to question tool tabs in the TUI, matching the existing pattern used for subagent navigation buttons.

Problem

The question tool displays tabs for multiple questions and a "Confirm" button, but these tabs didn't have hover states like other interactive elements in the UI. This made it harder to see which tab was being clicked, unlike the subagent switching buttons which already had hover feedback.

Changes

  • Added tabHover signal to track which tab is being hovered
  • Updated question tabs to show theme.backgroundElement on hover (darker) vs theme.backgroundPanel when not hovered (lighter)
  • Active tabs keep their theme.accent color unchanged
  • Same pattern applied to the Confirm tab

This follows the exact pattern used in header.tsx for the subagent navigation buttons (Parent, Prev, Next).

How Verified

Tested by running bun dev and triggering the question tool. Hovering over non-active tabs now shows the same visual feedback as other interactive elements in the TUI.

Screenshot with Highglight

image

Fixes #12202

Adds mouse hover visual feedback to question tool tabs in the TUI,
matching the existing pattern used for subagent navigation buttons.

Changes:
- Added tabHover signal to track which tab is being hovered
- Updated question tabs to show theme.backgroundElement on hover vs
  theme.backgroundPanel when not hovered
- Active tabs keep their theme.accent color unchanged
- Same pattern applied to the Confirm tab

Fixes anomalyco#12202
@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2026

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@rekram1-node
Copy link
Collaborator

/review

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

lgtm

@rekram1-node rekram1-node merged commit 31e2feb into anomalyco:dev Feb 5, 2026
7 checks passed
@maharshi365 maharshi365 deleted the fix/question-tab-hover branch February 5, 2026 01:34
dmae97 pushed a commit to dmae97/opencode that referenced this pull request Feb 5, 2026
01luyicheng pushed a commit to 01luyicheng/opencode that referenced this pull request Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add hover states to question tool tabs in TUI

2 participants